package com.ding.dao.impl;


import com.ding.pojo.User;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;

@Transactional
public class UserRepositoryImpl{
	@PersistenceContext
    EntityManager jpa;
	public User findUserByName(String name) {
		return jpa.find(User.class, name);
	}
}
